import request from '@/sheep/request';

export default {
	//获取热门推荐列表
	getHotList: (data) =>
		request({
			url: '/api/v1/image/hot-picks/search',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '加载中',
				successMsg: '加载完成'

			},
		}),
	//取消至热门推荐
	cancelHotGoods: (data) =>
		request({
			url: '/api/v1/image/cancel-hot-picks',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
				loadingMsg: '加载中',
				successMsg: '加载完成'
			},
		}),
	//添加至热门推荐
	addlHotGoods: (data) =>
		request({
			url: '/api/v1/image/hot-picks',
			method: 'POST',
			data,
			custom: {
				showSuccess: true,
			},
		}),
}